		<?php
			foreach($data as $i => $value){
				echo 'index = '.$i.', nilai = '.$value.'<br/>'; 
			}
		?>	

		<table border="1">
		<tr>
			<th>No</th>
			<th>Nama</th>
			<th>Umur</th>
			<th>Status</th>
			<th>Action</th>
		</tr>
		<?php	
				$i=$page;
			   foreach($query as $row){
				   echo	"<tr>";
				   		echo "<td>".$i."</td>";
					    echo "<td>".$row->karyawan_nama."</td>";
					    echo "<td>".$row->karyawan_umur."</td>";
					    echo "<td>".$row->karyawan_status."</td>";
					    echo "<td>".anchor("/Practice_Test/addForm?id=".$row->karyawan_id, 'UPDATE')." ".anchor("/Practice_Test/delete?id=".$row->karyawan_id, 'DELETE')."</td>";
					echo "</tr>";
					$i=$i+1;
				}

				echo $paging.'<br/>';
				
			   // echo $row['title'];
			   // echo $row['name'];
			   // echo $row['body'];
			
		?>
			</table>
		<?php echo anchor("/Practice_Test/addForm", 'ADD'); ?>
		
